﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using HPAGMRestAPIWrapper;

namespace AGMLite.BaseClass
{
    public class AGMLiteEntityFilterField : AGMLiteEntityField
    {
        public event PropertyChangedEventHandler PropertyChanged;        

        #region Private members
        private Common.AGMLiteEnum.Operation _operation;
        #endregion

        #region Properties
        public Common.AGMLiteEnum.Operation Operation
        {
            get
            {
                return _operation;
            }
            set
            {
                if (value != _operation)
                {
                    _operation = value;
                    OnPropertyChanged("Operation");
                }
            }
        }
        #endregion

        public AGMLiteEntityFilterField() : base()
        {

        }

        #region INotifyPropertyChanged Members
        private void OnPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        #endregion
    }
}
